﻿
/*----------------------------------------------------------------//
// 文件名：MoUsers.cs
// 文件功能描述：实体 MoUsers.
// 
// 创建标识：Template  ver 5.0.20090429 2009-07-19
//
// 修改标识：
// 修改描述：
//----------------------------------------------------------------*/
#region MoUsers
using System;
using System.Data;
namespace Las.Model
{
	/// <summary>
	/// 业务实体MoUsers
	/// </summary>
	public partial class MoUsers:ICloneable
	{
		#region 表Users的字段
		private int useq;
		private string loginName;
		private string userCode;
		private string armType;
		private string specialtyPhase;
		private string branchId;
		private string personId;
		private string personName;
		private string sexId;
		private string forkId;
		private DateTime birthday;
		private DateTime enrollDate;
		private string birthplace;
		private string famOriId;
		private string personIngId;
		private string polityMemberId;
		private string currentpostId;
		private string currentposttime;
		private string firstdegreeId;
		private string schoolspecial;
		private string currentdegreeId;
		private string strongSuit;
		private string degreeId;
		private string typicalLevel;
		private string identityTypeId;
		private string readinessId;
		private string graduatefrom;
		private string trainInfo;
		private string trainScore;
		private string trainEva;
		private string abilityEva;
		private string goodteacher;
		private string paper;
		private string partyattended;
		private string personlib;
		private string awardorpunish;
		private string resume;
		private string photo;
		private string userId;
		private string userPwd;
		private string fullName;
		private string posttype;
		private string zcbm;
		private string zgsf;
		private string enabled;
		private int state;
		#endregion
		
		#region 构造函数
		public MoUsers()
		{
			          birthday=new DateTime(1900,1,1); enrollDate=new DateTime(1900,1,1);                                    	    
		   
		}
		#endregion
		
		#region 拷贝构造函数

		public MoUsers(MoUsers item)
		{
			item.CopyTo(this);
		}
		#endregion
		
		#region 带参数构造函数
	    public MoUsers(int useq,string loginName,string userCode,string armType,string specialtyPhase,string branchId,string personId,string personName,string sexId,string forkId,DateTime birthday,DateTime enrollDate,string birthplace,string famOriId,string personIngId,string polityMemberId,string currentpostId,string currentposttime,string firstdegreeId,string schoolspecial,string currentdegreeId,string strongSuit,string degreeId,string typicalLevel,string identityTypeId,string readinessId,string graduatefrom,string trainInfo,string trainScore,string trainEva,string abilityEva,string goodteacher,string paper,string partyattended,string personlib,string awardorpunish,string resume,string photo,string userId,string userPwd,string fullName,string posttype,string zcbm,string zgsf,string enabled,int state)
		{
		this.useq=useq;
		this.loginName=loginName;
		this.userCode=userCode;
		this.armType=armType;
		this.specialtyPhase=specialtyPhase;
		this.branchId=branchId;
		this.personId=personId;
		this.personName=personName;
		this.sexId=sexId;
		this.forkId=forkId;
		this.birthday=birthday;
		this.enrollDate=enrollDate;
		this.birthplace=birthplace;
		this.famOriId=famOriId;
		this.personIngId=personIngId;
		this.polityMemberId=polityMemberId;
		this.currentpostId=currentpostId;
		this.currentposttime=currentposttime;
		this.firstdegreeId=firstdegreeId;
		this.schoolspecial=schoolspecial;
		this.currentdegreeId=currentdegreeId;
		this.strongSuit=strongSuit;
		this.degreeId=degreeId;
		this.typicalLevel=typicalLevel;
		this.identityTypeId=identityTypeId;
		this.readinessId=readinessId;
		this.graduatefrom=graduatefrom;
		this.trainInfo=trainInfo;
		this.trainScore=trainScore;
		this.trainEva=trainEva;
		this.abilityEva=abilityEva;
		this.goodteacher=goodteacher;
		this.paper=paper;
		this.partyattended=partyattended;
		this.personlib=personlib;
		this.awardorpunish=awardorpunish;
		this.resume=resume;
		this.photo=photo;
		this.userId=userId;
		this.userPwd=userPwd;
		this.fullName=fullName;
		this.posttype=posttype;
		this.zcbm=zcbm;
		this.zgsf=zgsf;
		this.enabled=enabled;
		this.state=state;
		}
		#endregion
		
		#region 表Users的字段属性
		/// <summary>
		/// USEQ
		/// </summary>
		public int Useq
		{
			get {return useq;}
			set {useq=value;}
		}
		/// <summary>
		/// LOGIN_NAME
		/// </summary>
		public string LoginName
		{
			get {return loginName;}
			set {loginName=value;}
		}
		/// <summary>
		/// USER_CODE
		/// </summary>
		public string UserCode
		{
			get {return userCode;}
			set {userCode=value;}
		}
		/// <summary>
		/// ARM_TYPE
		/// </summary>
		public string ArmType
		{
			get {return armType;}
			set {armType=value;}
		}
		/// <summary>
		/// SPECIALTY_PHASE
		/// </summary>
		public string SpecialtyPhase
		{
			get {return specialtyPhase;}
			set {specialtyPhase=value;}
		}
		/// <summary>
		/// BRANCH_ID
		/// </summary>
		public string BranchId
		{
			get {return branchId;}
			set {branchId=value;}
		}
		/// <summary>
		/// PERSON_ID
		/// </summary>
		public string PersonId
		{
			get {return personId;}
			set {personId=value;}
		}
		/// <summary>
		/// PERSON_NAME
		/// </summary>
		public string PersonName
		{
			get {return personName;}
			set {personName=value;}
		}
		/// <summary>
		/// SEX_ID
		/// </summary>
		public string SexId
		{
			get {return sexId;}
			set {sexId=value;}
		}
		/// <summary>
		/// FORK_ID
		/// </summary>
		public string ForkId
		{
			get {return forkId;}
			set {forkId=value;}
		}
		/// <summary>
		/// BIRTHDAY
		/// </summary>
		public DateTime Birthday
		{
			get {return birthday;}
			set {birthday=value;}
		}
		/// <summary>
		/// ENROLL_DATE
		/// </summary>
		public DateTime EnrollDate
		{
			get {return enrollDate;}
			set {enrollDate=value;}
		}
		/// <summary>
		/// BIRTHPLACE
		/// </summary>
		public string Birthplace
		{
			get {return birthplace;}
			set {birthplace=value;}
		}
		/// <summary>
		/// FAM_ORI_ID
		/// </summary>
		public string FamOriId
		{
			get {return famOriId;}
			set {famOriId=value;}
		}
		/// <summary>
		/// PERSON_ING_ID
		/// </summary>
		public string PersonIngId
		{
			get {return personIngId;}
			set {personIngId=value;}
		}
		/// <summary>
		/// POLITY_MEMBER_ID
		/// </summary>
		public string PolityMemberId
		{
			get {return polityMemberId;}
			set {polityMemberId=value;}
		}
		/// <summary>
		/// CURRENTPOST_ID
		/// </summary>
		public string CurrentpostId
		{
			get {return currentpostId;}
			set {currentpostId=value;}
		}
		/// <summary>
		/// CURRENTPOSTTIME
		/// </summary>
		public string Currentposttime
		{
			get {return currentposttime;}
			set {currentposttime=value;}
		}
		/// <summary>
		/// FIRSTDEGREE_ID
		/// </summary>
		public string FirstdegreeId
		{
			get {return firstdegreeId;}
			set {firstdegreeId=value;}
		}
		/// <summary>
		/// SCHOOLSPECIAL
		/// </summary>
		public string Schoolspecial
		{
			get {return schoolspecial;}
			set {schoolspecial=value;}
		}
		/// <summary>
		/// CURRENTDEGREE_ID
		/// </summary>
		public string CurrentdegreeId
		{
			get {return currentdegreeId;}
			set {currentdegreeId=value;}
		}
		/// <summary>
		/// STRONG_SUIT
		/// </summary>
		public string StrongSuit
		{
			get {return strongSuit;}
			set {strongSuit=value;}
		}
		/// <summary>
		/// DEGREE_ID
		/// </summary>
		public string DegreeId
		{
			get {return degreeId;}
			set {degreeId=value;}
		}
		/// <summary>
		/// TYPICAL_LEVEL
		/// </summary>
		public string TypicalLevel
		{
			get {return typicalLevel;}
			set {typicalLevel=value;}
		}
		/// <summary>
		/// IDENTITY_TYPE_ID
		/// </summary>
		public string IdentityTypeId
		{
			get {return identityTypeId;}
			set {identityTypeId=value;}
		}
		/// <summary>
		/// READINESS_ID
		/// </summary>
		public string ReadinessId
		{
			get {return readinessId;}
			set {readinessId=value;}
		}
		/// <summary>
		/// GRADUATEFROM
		/// </summary>
		public string Graduatefrom
		{
			get {return graduatefrom;}
			set {graduatefrom=value;}
		}
		/// <summary>
		/// TRAIN_INFO
		/// </summary>
		public string TrainInfo
		{
			get {return trainInfo;}
			set {trainInfo=value;}
		}
		/// <summary>
		/// TRAIN_SCORE
		/// </summary>
		public string TrainScore
		{
			get {return trainScore;}
			set {trainScore=value;}
		}
		/// <summary>
		/// TRAIN_EVA
		/// </summary>
		public string TrainEva
		{
			get {return trainEva;}
			set {trainEva=value;}
		}
		/// <summary>
		/// ABILITY_EVA
		/// </summary>
		public string AbilityEva
		{
			get {return abilityEva;}
			set {abilityEva=value;}
		}
		/// <summary>
		/// GOODTEACHER
		/// </summary>
		public string Goodteacher
		{
			get {return goodteacher;}
			set {goodteacher=value;}
		}
		/// <summary>
		/// PAPER
		/// </summary>
		public string Paper
		{
			get {return paper;}
			set {paper=value;}
		}
		/// <summary>
		/// PARTYATTENDED
		/// </summary>
		public string Partyattended
		{
			get {return partyattended;}
			set {partyattended=value;}
		}
		/// <summary>
		/// PERSONLIB
		/// </summary>
		public string Personlib
		{
			get {return personlib;}
			set {personlib=value;}
		}
		/// <summary>
		/// AWARDORPUNISH
		/// </summary>
		public string Awardorpunish
		{
			get {return awardorpunish;}
			set {awardorpunish=value;}
		}
		/// <summary>
		/// RESUME
		/// </summary>
		public string Resume
		{
			get {return resume;}
			set {resume=value;}
		}
		/// <summary>
		/// PHOTO
		/// </summary>
		public string Photo
		{
			get {return photo;}
			set {photo=value;}
		}
		/// <summary>
		/// USER_ID
		/// </summary>
		public string UserId
		{
			get {return userId;}
			set {userId=value;}
		}
		/// <summary>
		/// USER_PWD
		/// </summary>
		public string UserPwd
		{
			get {return userPwd;}
			set {userPwd=value;}
		}
		/// <summary>
		/// FULL_NAME
		/// </summary>
		public string FullName
		{
			get {return fullName;}
			set {fullName=value;}
		}
		/// <summary>
		/// POSTTYPE
		/// </summary>
		public string Posttype
		{
			get {return posttype;}
			set {posttype=value;}
		}
		/// <summary>
		/// ZCBM
		/// </summary>
		public string Zcbm
		{
			get {return zcbm;}
			set {zcbm=value;}
		}
		/// <summary>
		/// ZGSF
		/// </summary>
		public string Zgsf
		{
			get {return zgsf;}
			set {zgsf=value;}
		}
		/// <summary>
		/// ENABLED
		/// </summary>
		public string Enabled
		{
			get {return enabled;}
			set {enabled=value;}
		}
		/// <summary>
		/// STATE
		/// </summary>
		public int State
		{
			get {return state;}
			set {state=value;}
		}
		#endregion
		
		#region 辅助函数
		/// <summary>
		/// 拷贝函数
		/// </summary>
		public MoUsers CopyTo(MoUsers item)
        {
		    item.useq=this.useq;
		    item.loginName=this.loginName;
		    item.userCode=this.userCode;
		    item.armType=this.armType;
		    item.specialtyPhase=this.specialtyPhase;
		    item.branchId=this.branchId;
		    item.personId=this.personId;
		    item.personName=this.personName;
		    item.sexId=this.sexId;
		    item.forkId=this.forkId;
		    item.birthday=this.birthday;
		    item.enrollDate=this.enrollDate;
		    item.birthplace=this.birthplace;
		    item.famOriId=this.famOriId;
		    item.personIngId=this.personIngId;
		    item.polityMemberId=this.polityMemberId;
		    item.currentpostId=this.currentpostId;
		    item.currentposttime=this.currentposttime;
		    item.firstdegreeId=this.firstdegreeId;
		    item.schoolspecial=this.schoolspecial;
		    item.currentdegreeId=this.currentdegreeId;
		    item.strongSuit=this.strongSuit;
		    item.degreeId=this.degreeId;
		    item.typicalLevel=this.typicalLevel;
		    item.identityTypeId=this.identityTypeId;
		    item.readinessId=this.readinessId;
		    item.graduatefrom=this.graduatefrom;
		    item.trainInfo=this.trainInfo;
		    item.trainScore=this.trainScore;
		    item.trainEva=this.trainEva;
		    item.abilityEva=this.abilityEva;
		    item.goodteacher=this.goodteacher;
		    item.paper=this.paper;
		    item.partyattended=this.partyattended;
		    item.personlib=this.personlib;
		    item.awardorpunish=this.awardorpunish;
		    item.resume=this.resume;
		    item.photo=this.photo;
		    item.userId=this.userId;
		    item.userPwd=this.userPwd;
		    item.fullName=this.fullName;
		    item.posttype=this.posttype;
		    item.zcbm=this.zcbm;
		    item.zgsf=this.zgsf;
		    item.enabled=this.enabled;
		    item.state=this.state;
			return item;
        }
		/// <summary>
		/// 克隆函数
		/// </summary>		
		public object Clone()
        {
            MoUsers mo=new MoUsers();
		    mo.Useq=this.Useq;
		    mo.LoginName=this.LoginName;
		    mo.UserCode=this.UserCode;
		    mo.ArmType=this.ArmType;
		    mo.SpecialtyPhase=this.SpecialtyPhase;
		    mo.BranchId=this.BranchId;
		    mo.PersonId=this.PersonId;
		    mo.PersonName=this.PersonName;
		    mo.SexId=this.SexId;
		    mo.ForkId=this.ForkId;
		    mo.Birthday=this.Birthday;
		    mo.EnrollDate=this.EnrollDate;
		    mo.Birthplace=this.Birthplace;
		    mo.FamOriId=this.FamOriId;
		    mo.PersonIngId=this.PersonIngId;
		    mo.PolityMemberId=this.PolityMemberId;
		    mo.CurrentpostId=this.CurrentpostId;
		    mo.Currentposttime=this.Currentposttime;
		    mo.FirstdegreeId=this.FirstdegreeId;
		    mo.Schoolspecial=this.Schoolspecial;
		    mo.CurrentdegreeId=this.CurrentdegreeId;
		    mo.StrongSuit=this.StrongSuit;
		    mo.DegreeId=this.DegreeId;
		    mo.TypicalLevel=this.TypicalLevel;
		    mo.IdentityTypeId=this.IdentityTypeId;
		    mo.ReadinessId=this.ReadinessId;
		    mo.Graduatefrom=this.Graduatefrom;
		    mo.TrainInfo=this.TrainInfo;
		    mo.TrainScore=this.TrainScore;
		    mo.TrainEva=this.TrainEva;
		    mo.AbilityEva=this.AbilityEva;
		    mo.Goodteacher=this.Goodteacher;
		    mo.Paper=this.Paper;
		    mo.Partyattended=this.Partyattended;
		    mo.Personlib=this.Personlib;
		    mo.Awardorpunish=this.Awardorpunish;
		    mo.Resume=this.Resume;
		    mo.Photo=this.Photo;
		    mo.UserId=this.UserId;
		    mo.UserPwd=this.UserPwd;
		    mo.FullName=this.FullName;
		    mo.Posttype=this.Posttype;
		    mo.Zcbm=this.Zcbm;
		    mo.Zgsf=this.Zgsf;
		    mo.Enabled=this.Enabled;
		    mo.State=this.State;
			return mo;
		}
				///<summary>
		///判断对象是否相等
		///<summary>
		public override bool Equals(object obj)
        {		 
            if (object.ReferenceEquals(this,obj))
            {
                return true;
            }
            else
            {
                MoUsers NewUsers = obj as MoUsers;
                if (NewUsers == null)
                {
                    return false;
                }
                else
                {
				if (NewUsers.Useq==this.Useq && NewUsers.LoginName==this.LoginName && NewUsers.UserCode==this.UserCode && NewUsers.ArmType==this.ArmType && NewUsers.SpecialtyPhase==this.SpecialtyPhase && NewUsers.BranchId==this.BranchId && NewUsers.PersonId==this.PersonId && NewUsers.PersonName==this.PersonName && NewUsers.SexId==this.SexId && NewUsers.ForkId==this.ForkId && NewUsers.Birthday==this.Birthday && NewUsers.EnrollDate==this.EnrollDate && NewUsers.Birthplace==this.Birthplace && NewUsers.FamOriId==this.FamOriId && NewUsers.PersonIngId==this.PersonIngId && NewUsers.PolityMemberId==this.PolityMemberId && NewUsers.CurrentpostId==this.CurrentpostId && NewUsers.Currentposttime==this.Currentposttime && NewUsers.FirstdegreeId==this.FirstdegreeId && NewUsers.Schoolspecial==this.Schoolspecial && NewUsers.CurrentdegreeId==this.CurrentdegreeId && NewUsers.StrongSuit==this.StrongSuit && NewUsers.DegreeId==this.DegreeId && NewUsers.TypicalLevel==this.TypicalLevel && NewUsers.IdentityTypeId==this.IdentityTypeId && NewUsers.ReadinessId==this.ReadinessId && NewUsers.Graduatefrom==this.Graduatefrom && NewUsers.TrainInfo==this.TrainInfo && NewUsers.TrainScore==this.TrainScore && NewUsers.TrainEva==this.TrainEva && NewUsers.AbilityEva==this.AbilityEva && NewUsers.Goodteacher==this.Goodteacher && NewUsers.Paper==this.Paper && NewUsers.Partyattended==this.Partyattended && NewUsers.Personlib==this.Personlib && NewUsers.Awardorpunish==this.Awardorpunish && NewUsers.Resume==this.Resume && NewUsers.Photo==this.Photo && NewUsers.UserId==this.UserId && NewUsers.UserPwd==this.UserPwd && NewUsers.FullName==this.FullName && NewUsers.Posttype==this.Posttype && NewUsers.Zcbm==this.Zcbm && NewUsers.Zgsf==this.Zgsf && NewUsers.Enabled==this.Enabled && NewUsers.State==this.State)		
					{
                        return true; 
                    }
                }

            }
            return false;
            
        }
		///TODO:you should modify GetHashCode by yourself.
		public override int GetHashCode()
		{
			return base.GetHashCode();
		} 

		public override string ToString()
        {
		   return String.Format(System.Globalization.CultureInfo.InvariantCulture,"Useq={0}/LoginName={1}/UserCode={2}/ArmType={3}/SpecialtyPhase={4}/BranchId={5}/PersonId={6}/PersonName={7}/SexId={8}/ForkId={9}/Birthday={10}/EnrollDate={11}/Birthplace={12}/FamOriId={13}/PersonIngId={14}/PolityMemberId={15}/CurrentpostId={16}/Currentposttime={17}/FirstdegreeId={18}/Schoolspecial={19}/CurrentdegreeId={20}/StrongSuit={21}/DegreeId={22}/TypicalLevel={23}/IdentityTypeId={24}/ReadinessId={25}/Graduatefrom={26}/TrainInfo={27}/TrainScore={28}/TrainEva={29}/AbilityEva={30}/Goodteacher={31}/Paper={32}/Partyattended={33}/Personlib={34}/Awardorpunish={35}/Resume={36}/Photo={37}/UserId={38}/UserPwd={39}/FullName={40}/Posttype={41}/Zcbm={42}/Zgsf={43}/Enabled={44}/State={45}",useq,loginName,userCode,armType,specialtyPhase,branchId,personId,personName,sexId,forkId,birthday,enrollDate,birthplace,famOriId,personIngId,polityMemberId,currentpostId,currentposttime,firstdegreeId,schoolspecial,currentdegreeId,strongSuit,degreeId,typicalLevel,identityTypeId,readinessId,graduatefrom,trainInfo,trainScore,trainEva,abilityEva,goodteacher,paper,partyattended,personlib,awardorpunish,resume,photo,userId,userPwd,fullName,posttype,zcbm,zgsf,enabled,state);
		 
		}
		#endregion
		
		
		#region DataTable Help Function
		///<summary>
		///DataRow转换成Model
		///</summary>
		public void Row2Model(DataRow row)
		{
		    if(row["USEQ"]!=null && row["USEQ"]!=DBNull.Value)
			{
			    this.Useq = (int)row["USEQ"];
			}
			else
			{
				this.Useq =0;
			}
		    if(row["Login_Name"]!=null && row["Login_Name"]!=DBNull.Value)
			{
			    this.LoginName = (string)row["Login_Name"];
			}
			else
			{
				this.LoginName =string.Empty;
			}
		    if(row["User_Code"]!=null && row["User_Code"]!=DBNull.Value)
			{
			    this.UserCode = (string)row["User_Code"];
			}
			else
			{
				this.UserCode =string.Empty;
			}
		    if(row["ARM_TYPE"]!=null && row["ARM_TYPE"]!=DBNull.Value)
			{
			    this.ArmType = (string)row["ARM_TYPE"];
			}
			else
			{
				this.ArmType =string.Empty;
			}
		    if(row["SPECIALTY_PHASE"]!=null && row["SPECIALTY_PHASE"]!=DBNull.Value)
			{
			    this.SpecialtyPhase = (string)row["SPECIALTY_PHASE"];
			}
			else
			{
				this.SpecialtyPhase =string.Empty;
			}
		    if(row["Branch_ID"]!=null && row["Branch_ID"]!=DBNull.Value)
			{
			    this.BranchId = (string)row["Branch_ID"];
			}
			else
			{
				this.BranchId =string.Empty;
			}
		    if(row["Person_ID"]!=null && row["Person_ID"]!=DBNull.Value)
			{
			    this.PersonId = (string)row["Person_ID"];
			}
			else
			{
				this.PersonId =string.Empty;
			}
		    if(row["Person_Name"]!=null && row["Person_Name"]!=DBNull.Value)
			{
			    this.PersonName = (string)row["Person_Name"];
			}
			else
			{
				this.PersonName =string.Empty;
			}
		    if(row["Sex_ID"]!=null && row["Sex_ID"]!=DBNull.Value)
			{
			    this.SexId = (string)row["Sex_ID"];
			}
			else
			{
				this.SexId =string.Empty;
			}
		    if(row["Fork_ID"]!=null && row["Fork_ID"]!=DBNull.Value)
			{
			    this.ForkId = (string)row["Fork_ID"];
			}
			else
			{
				this.ForkId =string.Empty;
			}
		    if(row["Birthday"]!=null && row["Birthday"]!=DBNull.Value)
			{
			    this.Birthday = (DateTime)row["Birthday"];
			}
			else
			{
				this.Birthday =DateTime.MinValue;
			}
		    if(row["Enroll_Date"]!=null && row["Enroll_Date"]!=DBNull.Value)
			{
			    this.EnrollDate = (DateTime)row["Enroll_Date"];
			}
			else
			{
				this.EnrollDate =DateTime.MinValue;
			}
		    if(row["Birthplace"]!=null && row["Birthplace"]!=DBNull.Value)
			{
			    this.Birthplace = (string)row["Birthplace"];
			}
			else
			{
				this.Birthplace =string.Empty;
			}
		    if(row["Fam_Ori_ID"]!=null && row["Fam_Ori_ID"]!=DBNull.Value)
			{
			    this.FamOriId = (string)row["Fam_Ori_ID"];
			}
			else
			{
				this.FamOriId =string.Empty;
			}
		    if(row["Person_Ing_ID"]!=null && row["Person_Ing_ID"]!=DBNull.Value)
			{
			    this.PersonIngId = (string)row["Person_Ing_ID"];
			}
			else
			{
				this.PersonIngId =string.Empty;
			}
		    if(row["Polity_Member_ID"]!=null && row["Polity_Member_ID"]!=DBNull.Value)
			{
			    this.PolityMemberId = (string)row["Polity_Member_ID"];
			}
			else
			{
				this.PolityMemberId =string.Empty;
			}
		    if(row["CurrentPost_ID"]!=null && row["CurrentPost_ID"]!=DBNull.Value)
			{
			    this.CurrentpostId = (string)row["CurrentPost_ID"];
			}
			else
			{
				this.CurrentpostId =string.Empty;
			}
		    if(row["CurrentPostTime"]!=null && row["CurrentPostTime"]!=DBNull.Value)
			{
			    this.Currentposttime = (string)row["CurrentPostTime"];
			}
			else
			{
				this.Currentposttime =string.Empty;
			}
		    if(row["FirstDegree_ID"]!=null && row["FirstDegree_ID"]!=DBNull.Value)
			{
			    this.FirstdegreeId = (string)row["FirstDegree_ID"];
			}
			else
			{
				this.FirstdegreeId =string.Empty;
			}
		    if(row["SchoolSpecial"]!=null && row["SchoolSpecial"]!=DBNull.Value)
			{
			    this.Schoolspecial = (string)row["SchoolSpecial"];
			}
			else
			{
				this.Schoolspecial =string.Empty;
			}
		    if(row["CurrentDegree_ID"]!=null && row["CurrentDegree_ID"]!=DBNull.Value)
			{
			    this.CurrentdegreeId = (string)row["CurrentDegree_ID"];
			}
			else
			{
				this.CurrentdegreeId =string.Empty;
			}
		    if(row["Strong_Suit"]!=null && row["Strong_Suit"]!=DBNull.Value)
			{
			    this.StrongSuit = (string)row["Strong_Suit"];
			}
			else
			{
				this.StrongSuit =string.Empty;
			}
		    if(row["Degree_ID"]!=null && row["Degree_ID"]!=DBNull.Value)
			{
			    this.DegreeId = (string)row["Degree_ID"];
			}
			else
			{
				this.DegreeId =string.Empty;
			}
		    if(row["Typical_level"]!=null && row["Typical_level"]!=DBNull.Value)
			{
			    this.TypicalLevel = (string)row["Typical_level"];
			}
			else
			{
				this.TypicalLevel =string.Empty;
			}
		    if(row["Identity_Type_ID"]!=null && row["Identity_Type_ID"]!=DBNull.Value)
			{
			    this.IdentityTypeId = (string)row["Identity_Type_ID"];
			}
			else
			{
				this.IdentityTypeId =string.Empty;
			}
		    if(row["readiness_ID"]!=null && row["readiness_ID"]!=DBNull.Value)
			{
			    this.ReadinessId = (string)row["readiness_ID"];
			}
			else
			{
				this.ReadinessId =string.Empty;
			}
		    if(row["GraduateFrom"]!=null && row["GraduateFrom"]!=DBNull.Value)
			{
			    this.Graduatefrom = (string)row["GraduateFrom"];
			}
			else
			{
				this.Graduatefrom =string.Empty;
			}
		    if(row["Train_Info"]!=null && row["Train_Info"]!=DBNull.Value)
			{
			    this.TrainInfo = (string)row["Train_Info"];
			}
			else
			{
				this.TrainInfo =string.Empty;
			}
		    if(row["Train_Score"]!=null && row["Train_Score"]!=DBNull.Value)
			{
			    this.TrainScore = (string)row["Train_Score"];
			}
			else
			{
				this.TrainScore =string.Empty;
			}
		    if(row["Train_Eva"]!=null && row["Train_Eva"]!=DBNull.Value)
			{
			    this.TrainEva = (string)row["Train_Eva"];
			}
			else
			{
				this.TrainEva =string.Empty;
			}
		    if(row["ability_eva"]!=null && row["ability_eva"]!=DBNull.Value)
			{
			    this.AbilityEva = (string)row["ability_eva"];
			}
			else
			{
				this.AbilityEva =string.Empty;
			}
		    if(row["goodteacher"]!=null && row["goodteacher"]!=DBNull.Value)
			{
			    this.Goodteacher = (string)row["goodteacher"];
			}
			else
			{
				this.Goodteacher =string.Empty;
			}
		    if(row["paper"]!=null && row["paper"]!=DBNull.Value)
			{
			    this.Paper = (string)row["paper"];
			}
			else
			{
				this.Paper =string.Empty;
			}
		    if(row["partyattended"]!=null && row["partyattended"]!=DBNull.Value)
			{
			    this.Partyattended = (string)row["partyattended"];
			}
			else
			{
				this.Partyattended =string.Empty;
			}
		    if(row["Personlib"]!=null && row["Personlib"]!=DBNull.Value)
			{
			    this.Personlib = (string)row["Personlib"];
			}
			else
			{
				this.Personlib =string.Empty;
			}
		    if(row["awardorpunish"]!=null && row["awardorpunish"]!=DBNull.Value)
			{
			    this.Awardorpunish = (string)row["awardorpunish"];
			}
			else
			{
				this.Awardorpunish =string.Empty;
			}
		    if(row["resume"]!=null && row["resume"]!=DBNull.Value)
			{
			    this.Resume = (string)row["resume"];
			}
			else
			{
				this.Resume =string.Empty;
			}
		    if(row["photo"]!=null && row["photo"]!=DBNull.Value)
			{
			    this.Photo = (string)row["photo"];
			}
			else
			{
				this.Photo =string.Empty;
			}
		    if(row["USER_ID"]!=null && row["USER_ID"]!=DBNull.Value)
			{
			    this.UserId = (string)row["USER_ID"];
			}
			else
			{
				this.UserId =string.Empty;
			}
		    if(row["USER_PWD"]!=null && row["USER_PWD"]!=DBNull.Value)
			{
			    this.UserPwd = (string)row["USER_PWD"];
			}
			else
			{
				this.UserPwd =string.Empty;
			}
		    if(row["FULL_NAME"]!=null && row["FULL_NAME"]!=DBNull.Value)
			{
			    this.FullName = (string)row["FULL_NAME"];
			}
			else
			{
				this.FullName =string.Empty;
			}
		    if(row["PostType"]!=null && row["PostType"]!=DBNull.Value)
			{
			    this.Posttype = (string)row["PostType"];
			}
			else
			{
				this.Posttype =string.Empty;
			}
		    if(row["ZCBM"]!=null && row["ZCBM"]!=DBNull.Value)
			{
			    this.Zcbm = (string)row["ZCBM"];
			}
			else
			{
				this.Zcbm =string.Empty;
			}
		    if(row["ZGSF"]!=null && row["ZGSF"]!=DBNull.Value)
			{
			    this.Zgsf = (string)row["ZGSF"];
			}
			else
			{
				this.Zgsf =string.Empty;
			}
		    if(row["ENABLED"]!=null && row["ENABLED"]!=DBNull.Value)
			{
			    this.Enabled = (string)row["ENABLED"];
			}
			else
			{
				this.Enabled =string.Empty;
			}
		    if(row["state"]!=null && row["state"]!=DBNull.Value)
			{
			    this.State = (int)row["state"];
			}
			else
			{
				this.State =0;
			}
		}
		
		///<summary>
		///Model转换成DataRow
		///</summary>
	　　public void Model2Row(DataRow row)
		{
			row["USEQ"] = this.Useq;
			row["Login_Name"] = this.LoginName;
			row["User_Code"] = this.UserCode;
			row["ARM_TYPE"] = this.ArmType;
			row["SPECIALTY_PHASE"] = this.SpecialtyPhase;
			row["Branch_ID"] = this.BranchId;
			row["Person_ID"] = this.PersonId;
			row["Person_Name"] = this.PersonName;
			row["Sex_ID"] = this.SexId;
			row["Fork_ID"] = this.ForkId;
			row["Birthday"] = this.Birthday;
			row["Enroll_Date"] = this.EnrollDate;
			row["Birthplace"] = this.Birthplace;
			row["Fam_Ori_ID"] = this.FamOriId;
			row["Person_Ing_ID"] = this.PersonIngId;
			row["Polity_Member_ID"] = this.PolityMemberId;
			row["CurrentPost_ID"] = this.CurrentpostId;
			row["CurrentPostTime"] = this.Currentposttime;
			row["FirstDegree_ID"] = this.FirstdegreeId;
			row["SchoolSpecial"] = this.Schoolspecial;
			row["CurrentDegree_ID"] = this.CurrentdegreeId;
			row["Strong_Suit"] = this.StrongSuit;
			row["Degree_ID"] = this.DegreeId;
			row["Typical_level"] = this.TypicalLevel;
			row["Identity_Type_ID"] = this.IdentityTypeId;
			row["readiness_ID"] = this.ReadinessId;
			row["GraduateFrom"] = this.Graduatefrom;
			row["Train_Info"] = this.TrainInfo;
			row["Train_Score"] = this.TrainScore;
			row["Train_Eva"] = this.TrainEva;
			row["ability_eva"] = this.AbilityEva;
			row["goodteacher"] = this.Goodteacher;
			row["paper"] = this.Paper;
			row["partyattended"] = this.Partyattended;
			row["Personlib"] = this.Personlib;
			row["awardorpunish"] = this.Awardorpunish;
			row["resume"] = this.Resume;
			row["photo"] = this.Photo;
			row["USER_ID"] = this.UserId;
			row["USER_PWD"] = this.UserPwd;
			row["FULL_NAME"] = this.FullName;
			row["PostType"] = this.Posttype;
			row["ZCBM"] = this.Zcbm;
			row["ZGSF"] = this.Zgsf;
			row["ENABLED"] = this.Enabled;
			row["state"] = this.State;
		}
		#endregion
	}
}
#endregion
